<?php

class Application_Form_Searchone extends Zend_Form {

    public function init() {
        $this->setMethod("post")
                ->setAction("/search/one/search/index");

        #search string
        $searchString = new Zend_Form_Element_Text("searchString");
        $searchString->setLabel("Enter Your query here:")
                ->setAttribs(array('class' => 'span12'))
                ->setRequired();

        #radio option
        $from = new Zend_Form_Element_Radio('from');
        $from->setLabel("Select Option")
                ->setRequired();
        $from->addMultiOptions(array(
            'rss' => 'RSS',
            'html' => 'HTML'
        ));


        #submit
        $submit = new Zend_Form_Element_Submit("submit");
        $submit->setLabel("Search")
                ->setAttribs(array('class' => 'btn btn-success'));

        $this->addElements(array($searchString, $from, $submit));
    }

}

